package com.alan.repository;

import com.alan.entity.admin;
import com.alan.entity.teach;
import com.alan.entity.teacherstudent;

import java.util.List;

public interface AdminRepository {
    public admin login(String username, String password);

    public List<teacherstudent> findall(int index, int limit);

    public List<teach> findallteacher(int index,int limit);

    public int counts();

    public int teachercounts();

    public List<teach> findteacher();

    public void update(String name, String password, String t_class);

    public void addstudent(String stu_id, String Cname, String Ename, String tel, String stu_class, int semester, double mmarks, double emarks, String status);

    public void delete(String name, String t_class);

    public void change(String Nname, String Npassword, String name, String password);

    public admin find(String username);

    public void newpassword(String name, String password);
}
